<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>

<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  <title>系统发生错误</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="{$Think.config.CDN_URL}static/assets/i/favicon.png">

  <link rel="stylesheet" href="{$Think.config.CDN_URL}static/assets/css/amazeui.min.css">
  <link rel="stylesheet" href="{$Think.config.CDN_URL}static/assets/css/app.css">
</head>
<body>

  <div class="am-g" style="margin-top: 10px;">
        <div class="am-u-sm-12 am-text-center">
          <h1 class="am-serif"><?php echo strip_tags($e['message']);?></h1>
        </div>
        
        <?php if(isset($e['file'])) {?>
	    <div class="am-u-sm-12 am-text-left">
	        <div class="title">
	            <h3>错误位置</h3>
	        </div>
	        <div class="text">
	            <p>FILE: <?php echo $e['file'] ;?> &#12288;LINE: <?php echo $e['line'];?></p>
	        </div>
	    </div>
		<?php }?>
		<?php if(isset($e['trace'])) {?>
		    <div class="am-u-sm-12 am-text-left">
		        <div class="title">
		            <h3>TRACE</h3>
		        </div>
		        <div class="text">
		            <p><?php echo nl2br($e['trace']);?></p>
		        </div>
		    </div>
		<?php }?>

  </div>
</body>
</html>